/**
 * @filename DepartmentMapper.java
 * @package com.tianjian.core.system.mapper[DASS_UP]
 * @description 部门管理
 * @author 胡正衛
 * @date 2013-0220 14:28:18
 * @version v0.1
 */
package com.tianjian.oa.system.mapper;

import java.util.List;

import com.tianjian.common.Criteria;
import com.tianjian.oa.system.pojos.Department;
import com.tianjian.oa.system.pojos.Tree;

/**
 * @author 胡正衛
 */
public interface DepartmentMapper {

	/**
	 * 获取列表
	 * @param criteria
	 * @return
	 */
	public List<Department> getData(Criteria criteria);

	/**
	 * 获取总数
	 * @param criteria
	 * @return
	 */
	public int getCount(Criteria criteria);

	/**
	 * 添加科室
	 * @return
	 */
	public int insert(Department department);

	/**
	 * 编辑科室
	 * @return
	 */
	public int update(Department department);

	/**
	 * 删除科室
	 * @return
	 */
	public int delete(String id);

	/**
	 * 获取树形菜单
	 * @return
	 */
	public List<Tree> getTree(Criteria criteria);

}
